package com.ithinkstudio.jeez.log4j2;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import com.ithinkstudio.jeez.log4j2.log1.Log1;
import com.ithinkstudio.jeez.log4j2.log1.Log3;
import com.ithinkstudio.jeez.log4j2.log2.Log2;

@SpringBootApplication
public class Log4j2App implements CommandLineRunner {
	
	public static void main(String[] arg) {
		SpringApplication.run(Log4j2App.class, arg);
	}

	@Override
	public void run(String... args) throws Exception {
		Log2 log2 = new Log2();
		Log1 log1 = new Log1();
		log1.writeLog();
		log2.writeLog();
		Log3 log3 = new Log3();
		log3.writeLog();
	}

}
